<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <link rel="stylesheet" href="static/plugins/layui/css/layui.css"/>
    <link rel="stylesheet" href="static/css/login.css"/>
    <title>登录</title>
</head>
<body>

<img class="bgone" src="static/images/background.jpg">
<img class="pic" src="static/images/leftBackground.png">

<div class="table">
    <div class="wel">设备维护分析评价系统后台登录</div>
    <div class="wel1">SHE BEI WEI HU FEN XI PING JIA XI TONG HUO TAI DENG LU</div>
    <div class="user">
        <div class="yonghu" style="">
            <img src="static/images/username.png">
        </div>
        <input type="text" name="loginName" placeholder="用户名">
    </div>
    <div class="password">
        <div class="yonghu">
            <img src="static/images/password.png">
        </div>
        <input type="password" name="password" placeholder="●●●●●●">
    </div>
    <input class="btn" id="submit" type="button" name="登录" value="登录">
</div>

<script src="static/plugins/layui/layui.all.js"></script>
<script src="static/js/md5.js"></script>
<script src="static/js/jquery-3.2.1.min.js"></script>
<script src="static/js/device.js"></script>
<script>
    layui.use(['layer', 'jquery'], function () {
        var layer = layui.layer, $ = layui.jquery;
        $('#submit').on('click', function () {
            var loginName = JJZ.named('loginName').val();
            var pass = JJZ.named('password').val();
            var password = hex_md5(pass);
            JJZ.login(loginName, password);
        });
    });
</script>
</body>
</html>